package com.example.smartauctionserver;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {
	Button addProBtn;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        addProBtn = (Button)findViewById(R.id.addProBtn);
        addProBtn.setOnClickListener(new OnClickListener() {
			public void onClick(View arg0) {
				startActivity(new Intent(MainActivity.this,AddProductActivity.class ));
			}
		});
    }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}
